package cn.edu.zut.hhr.service;

import cn.edu.zut.hhr.entity.Comment;
import cn.edu.zut.hhr.vo.CommentVo;
import cn.edu.zut.hhr.vo.RestResponse;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 评论 服务类
 * </p>
 *
 * @author HHR
 * @since 2021-08-25
 */
public interface CommentService extends IService<Comment> {

    RestResponse getCommentByAid(Long aid,Integer page, Integer pageSize,Integer sonPage, Integer sonPageSize);
    List<CommentVo> getCommentByPid(Long aid, Integer page, Integer pageSize, Integer sonPage, Integer sonPageSize);

    RestResponse addComment(Long aid, String content,Long pid, Long toUid);
}
